@import '../../styles/index';

.footer {
  .padding-h-sides(2);
  .padding-v-sides();

  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  position: relative;
  background-color: var(--section);
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex-grow: 1;

  .footer--left {
    overflow-x: auto;
  }
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-item {
  .margin-left(2);
}

.metrics-icon {
  padding-right: 12px;

  &:hover {
    cursor: pointer;
    color: var(--title);
  }
}

.warning {
  color: var(--warning);
}

.info {
  color: var(--info);
}

.success {
  color: var(--teal);
}

.record-button {
  .weight(@bold);

  position: relative;
  width: 30px;
  height: 30px;
  background-color: var(--button);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  box-sizing: border-box;
  letter-spacing: 0.2px;
  border: none;

  span {
    font-size: 10px;
    color: var(--warning);
  }

  &:hover {
    background-color: var(--button-hover);
  }

  &:global(.active) {
    animation: pulse 2.5s linear infinite;
    background-color: var(--warning);

    span {
      color: var(--white);
    }
  }

  &:focus {
    outline: none;
  }
}

.record-time {
  color: var(--warning);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 2px 0 rgba(252, 62, 63, 0.6);
  }

  70% {
    box-shadow: 0 0 2px 4px rgba(252, 62, 63, 0.6);
  }

  100% {
    box-shadow: 0 0 2px 4px rgba(252, 62, 63, 0);
  }
}

.replay-button-group {
  font-size: 0;
  white-space: nowrap;
  display: flex;

  > button {
    font-size: 12px;
  }

  > .left-replay {
    border-radius: 100% 0 0 100%;
  }

  > .right-replay {
    border-radius: 0 100% 100% 0;
  }
}

.performance-metrics {
  position: relative;
  display: inline-flex;
  background: var(--section) !important;
  overflow-x: auto;
}